*
* The subnode is positioned before or after the content nodes and gets the
* .left or .right style class, depending on where it is located.
+ *
+ * |[<!-- language="plain" -->
+ * button.model
+ * ├── <child>
+ * ╰── check
+ * ]|
+ *
+ * Iconic model buttons (see #GtkModelButton::iconic) change the name of
+ * their main node to button and add a .model style class to it. The indicator
+ * subnode is invisible in this case.
*/
struct _GtkModelButton
if (iconic)
{
gtk_css_node_set_name (widget_node, I_("button"));
+ gtk_css_gadget_add_class (button->gadget, "model");
gtk_css_gadget_add_class (button->gadget, "image-button");
gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NORMAL);
gtk_css_node_set_visible (indicator_node, FALSE);
else
{
gtk_css_node_set_name (widget_node, I_("modelbutton"));
+ gtk_css_gadget_remove_class (button->gadget, "model");
gtk_css_gadget_remove_class (button->gadget, "image-button");
gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
gtk_css_node_set_visible (indicator_node,
transition: none;
}
- button.image-button {
+ button.model.image-button {
padding: 0px;
}
.titlebar popover.background button.titlebutton:hover {
text-shadow: none;
transition: none; }
- popover.background button.image-button, popover.background headerbar button.titlebutton, headerbar popover.background button.titlebutton,
- popover.background .titlebar button.titlebutton,
- .titlebar popover.background button.titlebutton {
+ popover.background button.model.image-button, popover.background headerbar button.model.titlebutton, headerbar popover.background button.model.titlebutton,
+ popover.background .titlebar button.model.titlebutton,
+ .titlebar popover.background button.model.titlebutton {
padding: 0px; }
.csd popover.background.touch-selection, .csd popover.background.magnifier, popover.background.touch-selection, popover.background.magnifier {
border: 1px solid rgba(255, 255, 255, 0.1); }
.titlebar popover.background button.titlebutton:hover {
text-shadow: none;
transition: none; }
- popover.background button.image-button, popover.background headerbar button.titlebutton, headerbar popover.background button.titlebutton,
- popover.background .titlebar button.titlebutton,
- .titlebar popover.background button.titlebutton {
+ popover.background button.model.image-button, popover.background headerbar button.model.titlebutton, headerbar popover.background button.model.titlebutton,
+ popover.background .titlebar button.model.titlebutton,
+ .titlebar popover.background button.model.titlebutton {
padding: 0px; }
.csd popover.background.touch-selection, .csd popover.background.magnifier, popover.background.touch-selection, popover.background.magnifier {
border: 1px solid rgba(255, 255, 255, 0.1); }